package com.op.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * (Question)表实体类
 *
 * @author 孤焰
 * @since 2021-10-05 10:29:21
 */
@Data
@ApiModel("题目")
public class Question implements Serializable {
    private static final long serialVersionUID = 500334271269551807L;

    @ApiModelProperty("主键")
    @TableId(type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("题库id")
    private Long bankId;

    @ApiModelProperty("题目")
    private String problem;

    @ApiModelProperty("答案")
    private String solution;

    @ApiModelProperty("标签")
    private String tags;

    @ApiModelProperty("题目难度 0 - 未定义难度 1 - 简单 2 - 中等 3 - 困难")
    private Integer difficulty;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("状态 0 - 未启用 1 - 启用")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date modifyTime;
}

